package zhjb.platform.module.blog.service;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import zhjb.platform.module.blog.bean.Classify;
import zhjb.platform.web.service.BaseService;

public class ClassifyService extends BaseService {
	/**
	 * 根据用户id获取用户的分类
	 * @param userId
	 * @return
	 */
	public List<Classify> getAllClassifies(String userId) {
		return dao.findAllByCriteria(DetachedCriteria.forClass(Classify.class));
	}
}
